package com.geline.easytrans.enums;

import com.geline.easytrans.annotation.DictType;
import com.geline.easytrans.dict.IDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户类型
 * @author: mengxin
 * @date: 2022/5/10 18:02
 */
@DictType(value = "sys_user_type", label = "用户类型")
@AllArgsConstructor
@Getter
public enum UserTypeEnum implements IDict {
    SYS("系统用户"),
    REG("注册用户");

    private String desc;

    @Override
    public String getLabel() {
        return desc;
    }

    @Override
    public Object getValue() {
        return name();
    }
}
